package com.kun.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = "sms_queue_direct")
public class SmsService_direct {



    @RabbitHandler(isDefault = true)
    public void receiveSmsMessage(String message){

        System.out.println("direct: Received SMS message: " + message);

    }

}
